package com.youpingou.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@TableName(value = "tb_address")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Address {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField(value="user_id")
    @JsonProperty("user_id")
    private Integer userId;
    @TableField(value="shr_name")
    @JsonProperty("shr_name")
    private String shrName;
    @TableField(value="shr_mobile")
    @JsonProperty("shr_mobile")
    private String shrMobile;
    @TableField(value="shr_province")
    @JsonProperty("shr_province")
    private String shrProvince;
    @TableField(value="shr_city")
    @JsonProperty("shr_city")
    private String shrCity;
    @TableField(value="shr_area")
    @JsonProperty("shr_area")
    private String shrArea;
    @TableField(value="shr_address")
    @JsonProperty("shr_address")
    private String shrAddress;
    @TableField(value="isdefault")
    @JsonProperty("isdefault")
    private Integer isdefault;

}